﻿@using SmartCode
@using SmartCode.Db
@model BuildContext
@{
    var project = Model.Project;
    var dbSource = Model.GetDataSource<DbSource>();
    var table = Model.GetCurrentTable();
    var pkCol = table.PKColumn;
}

<select id="getTotal" resultType="long">
    select count(*) from @table.Name
    <include refid="queryParams"/>
</select>